﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emerson.Storage.Station;
using Emerson.Storage.Core;
using Emerson.Storage.Entities;
using Emerson.Storage.Station.Interfaces;



namespace Emerson.Storage.Station.Services
{
    public class StationService : IStationService
    {
        public StationService()
        {

        }
        #region IStationService Members
        public virtual void AddStation<TStation>(IObjectContext context, TStation station) where TStation : class, IStation
        {
            var stations = context.CreateObjectSet<TStation>();
            stations.AddObject(station);
        }

        public IStation FindStation(System.Net.IPAddress ip)
        {
            throw new NotImplementedException();
        }

        public IStation FindStation(Func<System.Net.IPAddress, IStation> findLogic)
        {
            throw new NotImplementedException();
        }
        
        public void AddStation(IStation station)
        {
            throw new NotImplementedException();
        }

        #endregion
    }

    public class SubStationService : StationService
    {
        public override void AddStation<TStation>(IObjectContext context, TStation station)
        {

        }
    }
}
